import org.omg.PortableServer.LIFESPAN_POLICY_ID;

import java.util.Scanner;

/**
 * create by Sun
 * 2018/8/16
 */
public class AddCount {
    public static void main(String[] args) {
        ListNode p=new ListNode(0);
        ListNode q=null;
        ListNode head=new ListNode(0);
        q=head;
        Scanner sc=new Scanner(System.in);

        for(int i=0;i<3;i++){
            int x=sc.nextInt();
            p=new ListNode(0);
            p.val=x;
            q.next=p;
            q=p;

        }
        p=head.next;
        while(p!=null){
            System.out.println(p.val);
            p=p.next;
        }
    }
}

class ListNode {
      int val;
      ListNode next;
      ListNode(int x) { val = x; }
}
class Solution {
    public ListNode addTwoNumbers(ListNode l1, ListNode l2) {

        ListNode head=new ListNode(0);
        ListNode fl=head;
        ListNode p=l1;
        ListNode q=l2;
        int flag=0;
        while(p!=null||q!=null){
            int sum=0;
            if(p.next!=null){
                sum+=p.val;
                p=p.next;
            }
            if(q.next!=null){
                sum+=q.val;
                q=q.next;
            }
            if(flag==1){
                sum+=flag;
                flag=0;
            }
            if(sum>9){
                sum%=10;
                flag=1;
            }
            ListNode ll=new ListNode(0);
            ll.val=sum;
            l1.next=ll;
            l1=ll;
        }
        return head.next;
    }
}
